/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.system;

import com.enation.app.javashop.client.system.MessageClient;
import com.enation.app.javashop.core.client.fallback.system.MessageClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.system.dos.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author fk
 * @version v2.0
 * @Description: 站内消息
 * @date 2018/8/14 10:14
 * @since v7.0.0
 */
@FeignClient(value = "system-service",fallbackFactory = MessageClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface MessageClientFeignImpl extends MessageClient {

    /**
     * 通过id查询站内消息
     *
     * @param id 消息id
     * @return 站内消息对象
     */
    @Override
    @RequestMapping(value = "/client/message/{id}",method = RequestMethod.GET)
    Message get(@PathVariable("id") Long id);

}
